cdf0d5
@@ -146,11 +146,11 @@
public NullWritable createKey() {
 
   @Override
   public VectorizedRowBatch createValue() {
-    VectorizedRowBatch result = null;
+    VectorizedRowBatch result;
     try {
       result = rbCtx.createVectorizedRowBatch();
     } catch (HiveException e) {
-      new RuntimeException("Error creating a batch", e);
+      throw new RuntimeException("Error creating a batch", e);
     }
     return result;
   }
@@ -193,7 +193,7 @@
public boolean next(NullWritable key, VectorizedRowBatch value) throws IOExcepti
         }
       }
     } catch (Exception e) {
-      new RuntimeException("Error while getting next row", e);
+      throw new RuntimeException("Error while getting next row", e);
     }
     value.size = i;
     return more;
